# 列出工作目录下所有文件，并输出文件名

import os
path = os.getcwd()
list_file = os.walk(path)
print(list_file)
for dirpath,dirnames,filenames in list_file:
    #print('dirpath',dirpath)
    #print('dirnames',dirnames)
    #print('filenames',filenames)
    for dir in dirnames:
        print(os.path.join(dirpath,dir))
    for file in filenames:
        print(file)